import playerHandle from './playerHandle'


class InitHandle {
    constructor() {

    }

    initPlayer() {
        if (!window.player) {
            let player = playerHandle.getPlayer('wdy')
            if (!player) {
                player = playerHandle.create('wdy')
            }
            window.player = player
        }
        console.log(window.player)
    }

}

let initHandle = new InitHandle()

module.exports = initHandle